package transaction.seata.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import transaction.seata.common.entity.Result;

@FeignClient(name = "seata-account")
public interface AccountFeign {

    @GetMapping("/seata/account/debit")
    Result debit(@RequestParam("userId") String userId, @RequestParam("orderMoney")  Integer orderMoney);

}
